
<template>
  <a-drawer :width="500"    v-model:visible="visible" @ok="handlerOk" @cancel="handleClose" unmountOnClose>
    <template #title>
      日志详情
    </template>
    <div style="scroll:hidden">{{param}}
    </div>
  </a-drawer>
</template>
<script setup lang="ts">
import useVisible from '@/hooks/visible';
const { visible, setVisible } = useVisible();
import {type QueryResponse } from '@/api/system/log';
  const content=ref()
const param=ref()
// 打开详情

const openInfo = (record: QueryResponse) => {
  content.value=record.content
  param.value=record.param
  setVisible(true);
};

defineExpose({ openInfo});

const handlerClear = () => {
  setVisible(false);
};
const handlerOk = async () => {
  handlerClear();
};
// 关闭
const handleClose = () => {
  handlerClear();
};
</script>
<style scoped lang="less">

</style>